import demo1.Calculation;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
         Calculation calculation = (Calculation) context.getBean("calculation");
         calculation.add();
         calculation.divide();
         calculation.multiply();
         calculation.subtract();
    }
}
